# NOTE: I am a fucker builder, I don't provide any safe script and clean action
# NOTE: by the way, I always build and install to system dir `/usr/local/bin` if it is a executable file(ELF)
pkgname=nim-boomer
# NOTE: I don't fucking care about this version desciption
pkgver=1
pkgrel=1
# NOTE: So if this is not match to your version, I don't fucking care
pkgdesc="using nimlang to develop a screen zoomer app, provided by @tsoding"
url="https://github.com/tsoding/boomer"
# NOTE: I also don't fucking care about LICENSE
license=('MIT')
# NOTE: I may check what architecture can works, but usually I only build for `arch linux x86_64`
arch=('any')
# NOTE: I may check
makedepends=('nim')
source=(https://521github.com/tsoding/boomer/archive/refs/heads/master.zip) # TODO: change here
# NOTE: I skip this, cause I don't know how to get the value
md5sums=('SKIP')

build() {
  echo "SRC DIR: ${srcdir} ========================================"
  echo "CURRENT DIR: $PWD ========================================="
}

package() {
  echo "SRC DIR: ${srcdir} ========================================"
  # CURRENT DIR: =========================================
  echo "CURRENT DIR: $PWD ========================================="
  #PKG DIR: ========================================
  echo "PKG DIR: ${pkgdir} ========================================"
  #cd go/ # into srcdir go
  cd boomer-master
  nimble build -v
  sudo mv boomer /usr/local/bin
  echo "=============== MANUAL DELETE ALL FILE NOW ========================================"
  echo "AND you can delete go by: sudo rm -rf /usr/local/bin/$pkgname"
}
